﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrainingWorkshop.DAL_EF;

namespace DAL_EF
{
    /// <summary>
    /// Author: Sissi Zeng
    /// Date:2012-08-12 19:50
    /// This class is used to handler data from table Level in database
    /// </summary>
    public static class LevelRepository
    {
        /// <summary>
        /// get all teachers from table Level in database
        /// </summary>
        /// <returns>list of level</returns>
        public static List<Level> GetALlLevel() {
            List<Level> levels = new List<Level>();
            using (var db = new projectbEntities()) {
                 levels = db.Level_SelectAll().ToList();

            }

            return levels;
        }
    }
}
